﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace KegData
{
    public enum BeerColor : byte
    {
        Yellow = 1,
        Straw = 2,
        Copper = 3,
        Red = 4,
        Brown = 5,
        Black = 6
    }

    public class KegDataConnection
    {
        public static string ConnectionString
        {
            get
            {
                // TODO: get the connection string
                // TODO: The kegmanager UI app needs to have its own settings for the server, or request them from this app.

                //StringBuilder builder = new StringBuilder();
                //"Data Source=KEGMONITOR;Initial Catalog=kegdata;User ID=sa;Password=ilovebeer";
                //string connection = String.Format("Data Source={0};Initial Catalog={1};User ID={2};Password={3}",
                //    Properties.Settings.Default.dbServer,
                //    Properties.Settings.Default.dbSettings.database, User, password);
                return Properties.Settings.Default.kegdataConnectionString;
            }
        }
    }
}
